// 1.引入封装好的axios
import axios from '@/utils/myaxios.js'

// 获取所有权限列表
export const getAllRight = (type) => {
  return axios({
    url: `rights/${type}`
  })
}

// 获取左侧菜单权限
export const getLfMenu = () => {
  return axios({
    url: 'menus',
    method: 'get'
  })
}
